package com.zut.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zut.Pojo.problem.Problem;
import com.zut.Pojo.problem.ProblemCase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (Problem)表数据库访问层
 *
 * @author makejava
 * @since 2023-11-10 12:34:14
 */
@Mapper
public interface ProblemDao extends BaseMapper<Problem> {

    @Select("SELECT * from problem_case where pid=#{Id}")
    List<ProblemCase> getAllCase(String Id);

    @Select("SELECT * from problem where problem_id=#{problemId}")
    Problem selectByProblemId(String problemId);

}

